<table>
    <thead>
        <tr>
            <g:sortableColumn property="id" title="${message(code: 'moc.td.id.label', default: 'Id')}" />
            <th><g:message code="moc.td.td001.label" default="Td001" /></th>
            <th><g:message code="moc.td.td002.label" default="Td002" /></th>
            <th><g:message code="moc.td.td003.label" default="Td003" /></th>
            <g:sortableColumn property="dateCreated" title="${message(code: 'default.dateCreated.label', default: 'Date Created')}" />
            <g:sortableColumn property="lastUpdated" title="${message(code: 'default.lastUpdated.label', default: 'Last Updated')}" />
        </tr>
    </thead>
    <tbody>
    <g:each in="${tdInstanceList}" status="i" var="tdInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td><g:link action="show" id="${tdInstance.id}">${fieldValue(bean: tdInstance, field: "id")}</g:link></td>
            <td>${fieldValue(bean: tdInstance, field: "td001")}</td>
            <td>${fieldValue(bean: tdInstance, field: "td002")}</td>
            <td>${fieldValue(bean: tdInstance, field: "td003")}</td>
            <td><g:formatDate date="${tdInstance.dateCreated}" /></td>
            <td><g:formatDate date="${tdInstance.lastUpdated}" /></td>
        </tr>
    </g:each>
    </tbody>
</table>
